import request from '@/utils/request'



// 运费模板列表
export function getFreightTemplateList() {
  return request({
    url: '/manager/setting/freightTemplate/list',
    method: 'get'
  })
}

// 运费模板列表
export function listUsableFreightTemplateList() {
  return request({
    url: '/manager/setting/freightTemplate/usableList',
    method: 'get'
  })
}

// 添加运费模板
export function addFreightTemplateList(data) {
  return request({
    url: '/manager/setting/freightTemplate',
    method: 'post',
    data: data
  })
}

// 删除运费模版
export function delFreightTemplate(id) {
  return request({
    url: '/manager/setting/freightTemplate/' + id,
    method: 'delete'
  })
}

// 修改运费模板
export function updateFreightTemplate(data) {
  return request({
    url: '/manager/setting/freightTemplate',
    method: 'put',
    data: data
  })
}
